﻿@model trangbaocao.Models.LogInModel
<style type="text/css">        
        .web_dialog
        {
            display: none;
            position: fixed;
            top:25%;
            left:43%;            
            margin-left: -190px;
            margin-top: -100px;
            padding: 0px;
            z-index: 102;
            
        }
        .web_dialog_overlay
        {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            height: 100%;
            width: 100%;
            margin: 0;
            padding: 0;
            background: #000000;
            opacity: .15;
            filter: alpha(opacity=15);
            -moz-opacity: .15;
            z-index: 101;
            display: none;
        }
    </style>
    <script type="text/javascript">    
        $(document).ready(function () {
            var status = '@(ViewBag.status)';
            if (status=="True") {
                ShowDialog();
                e.preventDefault();
            }
            else
                HideDialog();

        });

        function ShowDialog() {
              $("#overlay").show();
              $("#dialog").fadeIn(300);           
        }

        function HideDialog() {
            $("#overlay").hide();
            $("#dialog").fadeOut(300);
        }     
    </script>
            @*<div id="output"></div>*@            
            <div id="overlay" class="web_dialog_overlay"></div>               
            <div id="dialog" class="web_dialog">
                @RenderPage("login.cshtml")  
            </div> 